<div class="slickr-photos">
<?php echo $before_title . $options['title'] . $after_title; ?>
<?php
$baseurl = get_option('Slickr_flickr_baseurl');

//don't need to resolve absolutely, since we're not in a post
//$parts = parse_url(get_bloginfo('home'));
//$home = 'http://'.$parts['host'];

if (is_array($photos)) foreach($photos as $photo):
$photoURL = $baseurl.'photo/'.$photo['id'].'/'.$photo['pagename'];
?>
<a href="<?echo $photoURL ?>"><img src="<?php echo $photo['sizes']['Square']['source']?>" width="<?php echo $photo['sizes']['Square']['width']?>" height="<?php echo $photo['sizes']['Square']['height']?>" alt="<?php echo htmlentities($photo['title'])?>" /></a>
<?endforeach;?>
</div>
